From: H Hartley Sweeten Date: Wed, 16 Jul 2014 17:43:20 +0000 (-0700) Subject: staging: comedi: amplc_pci224: checkpatch.pl cleanup (else after return) X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~6194^2~655 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=34880ec79918879bd6d81f2301b14bf7243f39cf;p=linux-4.9.git staging: comedi: amplc_pci224: checkpatch.pl cleanup (else after return) Fix this checkpatch.pl warning: WARNING: else is not generally useful after a break or return Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/amplc_pci224.c b/drivers/staging/comedi/drivers/amplc_pci224.c index 339c47c1eb97..55f69c5981c4 100644 --- a/drivers/staging/comedi/drivers/amplc_pci224.c +++ b/drivers/staging/comedi/drivers/amplc_pci224.c @@ -1255,9 +1255,8 @@ static int pci224_attach_common(struct comedi_device *dev, dev_err(dev->class_dev, "error! unable to allocate irq %u\n", irq); return ret; - } else { - dev->irq = irq; } + dev->irq = irq; } return 0;